package club.vann.kafka.mock.controller;

import club.vann.kafka.mock.service.*;
import club.vann.kafka.mock.service.transfer.TransferService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/transfer")
@RequiredArgsConstructor
@RestController
@Slf4j
public class TransferController extends BaseController {
  private final TransferService transferService;

  /** 新建转账请求 */
  @GetMapping("/new")
  public void newTransfer() {
    log.info("新建转账请求");
    this.transferService.transfer();
  }
}
